#pragma once

enum STATE 
{
	STEP_STOP = 0,
	STEP_HNWAITTEMP,
	STEP_HNTGD1,
	STEP_HNXIELIAO,
	STEP_HNTGD2,
	STEP_JLCHENGZHONG,
	STEP_JLTGD1,
	STEP_JLXIELIAO,
	STEP_JLTGD2,
	STEP_LSSHANGLIAOWAIT,
	STEP_LSSHANGLIAO,
	STEP_LSWAITYALI,
	STEP_LSDILIAO,
	STEP_LSDILIAODELAY,
	STEP_HHWAIT,
	STEP_HHWAITTGD,
	STEP_HHSHANGLIAO,
	STEP_HHWAITLS,
	STEP_HHWAITTEMP,
	STEP_HHLSDILIAO,
	STEP_HHBAOWEN,
	STEP_HHWAITXIELIAO,
	//STEP_HHWAITSH,
	STEP_HHTGD1,
	STEP_HHXIELIAO,
	STEP_HHTGD2,
	STEP_SJSSHANGLIAOWAIT,
	STEP_SJSSHANGLIAO,
	STEP_SJSDILIAO,
	STEP_SJSDILIAODELAY,
	STEP_JQSHANGLIAOWAIT,
	STEP_JQSHANGLIAO,
	STEP_JQWAITYALI,
	STEP_JQDILIAO,
	STEP_JQDILIAODELAY,
	STEP_SHWAIT,
	STEP_SHSHANGLIAO,
	STEP_SHWAITSJS,
	STEP_SHSJSDILIAO,
	STEP_SHWAITJQ,
	STEP_SHWAITTEMP,
	STEP_SHJQDILIAO,
	STEP_SHBAOWEN,
	STEP_SHTGD1,
	STEP_SHXIELIAO,
	STEP_SHTGD2,	
	STEP_ZHSHANGLIAO,
	STEP_FINISH,
};

class CCtrl
{
public:
	CCtrl(void);
	~CCtrl(void);
	STATE GoNextStep();
	STATE GoNextStep(STATE begin, STATE end);
	STATE GetCurState();
	void SetState(STATE state);

private:
	STATE _dwCurState;
	
};
